package com.xu.wemall;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class WeMallApplication implements CommandLineRunner {

    @Autowired
    ApplicationContext applicationContext;

    public void run(String... args) {
        // EmailEvent event = new EmailEvent("hello","abc@163.com","This is a test");
        // applicationContext.publishEvent(event);
    }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(WeMallApplication.class, args);
    }

}
